// 小仓库，关于layout组件配置仓库
import {defineStore} from 'pinia'

let useLayOutSettingStore = defineStore('SettingStore',{
  state:()=>{
    return {
      fold:false,
      refsh:false //控制刷新
    }
  },
  actions: {
    click_menu() {
      console.log('点击了菜单折叠按钮');
      this.fold = !this.fold;
    },
    click_refsh() {
      console.log('点击了刷新按钮');
      this.refsh = !this.refsh;
    },
  },
  getters: {}
})

console.log('SettingStore 已初始化');
export default useLayOutSettingStore;